home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / Add-Ons / WebSTAR / PPSendPartial CGI / Source / LCGIStatusWindow.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-05  |  1.4 KB  |  91 lines  |  [TEXT/CWIE]

  1. /***
  2.     File:        LCGIStatusWindow.h
  3.  
  4.  
  5.     Contains:    <contents>
  6.  
  7.  
  8.     Written by:    Ken Wieschhoff
  9.  
  10.  
  11.     Copyright:    ©1996 Siren Enterprises, All Rights Reserved.
  12.  
  13.  
  14.     Change History (most recent first):
  15.  
  16.  
  17.  
  18.        <1>     9/5/96  kw     Text Services status window
  19.  
  20. ***/
  21.  
  22.  
  23. #pragma once
  24. #include <LHandleStream.h>
  25. #include <LWindow.h>
  26.  
  27. #include <LThread.h>
  28.  
  29. class LStatusWindow : public LWindow
  30. {
  31.  public:
  32.                         LStatusWindow();
  33.                         ~LStatusWindow();
  34.     virtual void        MakeStatusWindow();
  35.  
  36.     static WindowPtr    sMacWindowP;
  37.  
  38.  
  39. };
  40.  
  41.  
  42. class LCGIStatusThread : public LThread
  43. {
  44.     public:
  45.         LCGIStatusThread (LCommander *itsSuper);
  46.         ~LCGIStatusThread();
  47.  
  48.         void OpenStatusWindow();
  49.         void CloseStatusWindow();
  50.  
  51.         LStatusWindow                *mWindow;
  52.         static Boolean                sNeedsRedraw;
  53.         static Boolean                sNeedsUpdate;
  54.         static long                    sMaxConnected;
  55.         static long                    sTotalConnections;
  56.  
  57.     protected:
  58.  
  59.         // thread execution
  60.         virtual void*    Run();
  61.  
  62. };
  63.  
  64. void InstallGNEFilter ();
  65. void RemoveGNEFilter ();
  66. pascal short CGIGNEFilter ( short result, EventRecord *theEvent, GNEFilterUPP *oldHook);
  67.  
  68. #if GENERATINGCFM
  69. void CallPPCGNEFilter( EventRecord *theEvent, short *result);
  70. #else
  71. asm long *A5Stash();
  72. asm void Call68KGNEFilter();
  73. #endif
  74.  
  75. struct DITLItem {
  76.     long    unused;
  77.     Rect    bounds;
  78.     short    unused2;
  79. };
  80. typedef struct DITLItem DITLItem;
  81.  
  82.  
  83. struct DITLTemplate {
  84.     short                            numItems;
  85.     DITLItem                        eachItem[];
  86. };
  87. typedef struct DialogTemplate DialogTemplate;
  88.  
  89. typedef DITLTemplate *DITLTemplatePtr, **DITLTemplateHdl;
  90.  
  91.